package com.benson.generic.bound;

import java.awt.Color;

public class InheritBounds {

}

class HoldItem<T>{
	T item;
	HoldItem(T t){
		item = t;
	}
	
	T getItem(){return item;}
}

class Colored2<T extends HasColor> extends HoldItem<T> implements HasColor{

	Colored2(T t) {
		super(t);
	}
	
	public Color getColor(){
		return getItem().getColor();
	}
}

class ColoredDimension2<T extends HasColor> extends Colored2<T>{

	ColoredDimension2(T t) {
		super(t);
		// TODO Auto-generated constructor stub
	}
	
}
